public class FruitObserverImpl implements FruitObserver {
    public void update(Fruit fruit) {
        System.out.println("水果信息已更新，名称为：" + fruit.getName() + "，价格为：" + fruit.getPrice());
    }
}